package com.example.animations.activities;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.animations.R;

public class PushedActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pushed);
    }

    // Comment this to disable "back" animation on back button press, transition will be "next" instead
    @Override
    public boolean onSupportNavigateUp() {
        onBackPressed();
        return true;
    }
}
